export function bdMapEncrypt(gdlng, gdlat) {
  const X_PI = Math.PI * 3000.0 / 180.0;
  const x = gdlng, y = gdlat;
  const z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * X_PI);
  const theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * X_PI);
  const bd_lng = (z * Math.cos(theta) + 0.0065).toFixed(8);
  const bd_lat = (z * Math.sin(theta) + 0.006).toFixed(8);
  return [bd_lng, bd_lat]
}
